#include <bits/stdc++.h>
using namespace std;
int t[200001];
int kd;
int a[200001];
int main(){
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    int n;
    cin>>n;
    for(int i=1;i<=n;i++){
        cin>>a[i];
        t[a[i]]+=1;
    }
    int ans=n;
    for(int i=1;i<=100000;i++){
        if(t[i]>=1){
            ans-=min(kd,t[i]);
            kd-=min(kd,t[i]);
            kd+=t[i];
        }
    }
    cout<<ans<<endl;
}
